#region

using System.Web;
using BuildMotion.Common.MotionTracker;

#endregion

namespace BuildMotion.MotionTracker
{
    /// <summary>
    /// The repository for retrieving and persisting MotionTracker information.
    /// </summary>
    public class MotionTrackerRepository : IMotionTrackerRepositoryBase
    {
        private MotionTrackerAdaptor adaptor = null;

        #region IMotionTrackerRepositoryBase Members

        public void TrackRequest(HttpApplication application)
        {
            this.adaptor = new MotionTrackerAdaptor();
            this.adaptor.TrackRequest(application);
        }

        public void TrackRequest(HttpApplication application, string trackerId, string trackerOriginId)
        {
            this.adaptor = new MotionTrackerAdaptor();
            this.adaptor.TrackRequest(application, trackerId, trackerOriginId);
        }

        #endregion
    }
}